#include <iostream>
using std::cout;
using std::endl;
class base
{
public:
    base(int x):a(x){};//const成员在构造函数初始化
    const int a;
    static int b;
    const static int c;//const static成员在类内初始化
};
int base::b=9;//static成员在类外初始化，可以修改
//const int base::c=10;//也可以像static在类外初始化
const int base::c = 105;
int main()
{
    base obj(100);
    cout<<obj.a<<endl;
    cout<<base::b<<endl;
    cout<<base::c<<endl;
}